<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
class controller{
    protected $smarty;
    public function header(){
        header("content-type:text/html;chartset=utf-8");     
    }
    public function smartyAction($fileName="index"){
        require DOCMENT_ROOT."/Framework/Smarty/Smarty.class.php";
        $this->smarty = new Smarty();
        $this->smarty->template_dir=DOCMENT_ROOT."/{$fileName}/view";
        $this->smarty->compile_dir=DOCMENT_ROOT."/{$fileName}/view_c";
    }
    
    
}



